<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            <p:message for="firstName" id="msgFirstName"/>
            <p:message for="lastName" id="msgLastName"/>
            <p:message for="age" id="msgAge"/>
            
            <p:panelGrid columns="2">
                <p:outputLabel for="firstName" value="First name:" />
                <p:inputText id="firstName" value="#{beanValidationBean.firstName}" />
                <p:outputLabel for="lastName" value="Last name:" />
                <p:inputText id="lastName" value="#{beanValidationBean.lastName}" />
                <p:outputLabel for="age" value="Age:" />
                <p:inputText id="age" value="#{beanValidationBean.age}" />
                <h:outputText />
                <p:commandButton value="Save" action="#{beanValidationBean.save}" />
            </p:panelGrid>
        </h:form>
    </h:body>
</html>